roundedbox: Fix copy-paste error
authorBenjamin Otte <otte@redhat.com>
Thu, 20 Dec 2012 18:51:06 +0000 (19:51 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 21 Dec 2012 18:47:40 +0000 (19:47 +0100)
y coordinates don't care about the right value, they want bottom.

gtk/gtkroundedbox.c

index 3fa44e0ab9ee6c0b4147bea87b6007b0c0931fbb..653d27feefaa2008e2f0a5a1dac8171d3cfadad8 100644 (file)
@@ -171,7 +171,7 @@ _gtk_rounded_box_grow (GtkRoundedBox *box,
       box->box.width += left + right;
     }
 
-  if (box->box.height + bottom + right < 0)
+  if (box->box.height + bottom + top < 0)
     {
       box->box.y -= top * box->box.height / (top + bottom);
       box->box.height = 0;